﻿using System.Collections.Generic;

namespace Common
{
    class PsdEntity
    {
        //===================================标题信息
        //配送单标题
        public string psdTitle = string.Empty;

        //条码
        public string code128 = string.Empty;

        //品牌联系方式
        public string brandContact = string.Empty;

        //===================================订单信息
        //订单编号
        public string oid = string.Empty;

        //会员编号
        public string cid = string.Empty;

        //二维码
        public string qrCode = string.Empty;

        //收货人
        public string consignee = string.Empty;

        //联系方式
        public string contact = string.Empty;

        //收货地址
        public string address = string.Empty;

        //生产备注
        public string productionNote = string.Empty;

        //配送备注
        public string deliveryNote = string.Empty;

        //发票信息 
        public string invoice = string.Empty;

        //配送时间
        public string deliveryTime = string.Empty;

        //支付方式
        public string zfType = string.Empty;

        //配送员
        public string deliveryName = string.Empty;

        //订单费用
        public double totalCost = 0;

        //附件信息
        public string annex = string.Empty;

        //订单来源
        public string orderSourceName = string.Empty;

        //已付金额
        public double paid = 0;

        //应收金额
        public double receivableAmount = 0;

        //受理信息
        public string acceptInfo = string.Empty;

        //大写金额
        public string rmb = string.Empty;

        //产品信息
        //public List<PsdProduct> productList = new List<PsdProduct>();



        public class PsdProduct
        {
            //===================================标题信息
            //配送单标题
            public string psdTitle = string.Empty;

            //品牌联系方式
            public string brandContact = string.Empty;

            //===================================产品信息
            //订单号
            public string oid = string.Empty;

            //sku
            public string sku = string.Empty;

            //产品名称
            public string productName = string.Empty;

            //产品属性 
            public int attributeId = 0;

            //胚子编号
            public string embryoId = string.Empty;

            //胚子名称
            public string embryoName = string.Empty;

            //规格编号
            public string specId = string.Empty;

            //规格名称
            public string specName = string.Empty;

            //数量
            public int pnums = 0;

            //单价
            public double price = 0;

            //折扣编号
            public int agioId = 0;

            //折扣类型
            public string agioName = string.Empty;

            //小计费用
            public double subTotal = 0;
        }
    }
}
